/**
 * 
 */
package GUI;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JComboBox;

/**
 * @author aviat
 *
 */
public class Pricing extends JPanel{

	
	private static final long serialVersionUID = 1L;
	private JButton btnBack;
	private JButton btnApply;
	private JLabel iconlabel;
	private JLabel lblEventId;
	private JLabel lblEventDate;
	private JLabel lblEventPlace;
	private JLabel lblPrice;
	private JComboBox<String> EventDateComboBox;
	private JComboBox<String> EventPlaceComboBox;
	private JTextField PricetextField;
	private JComboBox<String> EventIDComboBox;
	private JLabel lblPaid;
	private JTextField PaidtextField;

	/**
	 * Constructor
	 */
	public Pricing() {
		setLayout(null);
		btnApply = new JButton("Apply");
		btnApply.setIcon(new ImageIcon(Pricing.class.getResource("/resources/dialog_apply.png")));
		
		btnBack = new JButton("Back");
		btnBack.setIcon(new ImageIcon(Pricing.class.getResource("/resources/back22.png")));
		EventDateComboBox = new JComboBox<String>();
		EventDateComboBox.setEditable(false);
		EventPlaceComboBox = new JComboBox<String>();
		EventIDComboBox = new JComboBox<String>();
		PricetextField = new JTextField();
		
		initialize();
	}

	private void initialize() {
		
		btnApply.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		
		JLabel lblPricing = new JLabel("Pricing");
		lblPricing.setForeground(new Color(0, 204, 255));
		lblPricing.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblPricing.setBounds(10, 11, 143, 25);
		add(lblPricing);
		
		btnApply.setBounds(303, 403, 101, 27);
		add(btnApply);
		
		btnBack.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack.setBounds(10, 462, 101, 27);
		add(btnBack);
		
		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
		lblEventId = new JLabel("Event ID:");
		lblEventId.setForeground(Color.WHITE);
		lblEventId.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblEventId.setBounds(159, 99, 88, 27);
		add(lblEventId);
		
		lblEventDate = new JLabel("Event Date:");
		lblEventDate.setForeground(Color.WHITE);
		lblEventDate.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblEventDate.setBounds(159, 162, 88, 27);
		add(lblEventDate);
		
		lblEventPlace = new JLabel("Event Place:");
		lblEventPlace.setForeground(Color.WHITE);
		lblEventPlace.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblEventPlace.setBounds(159, 216, 88, 27);
		add(lblEventPlace);
		
		lblPrice = new JLabel("Price:");
		lblPrice.setForeground(Color.WHITE);
		lblPrice.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblPrice.setBounds(159, 274, 88, 27);
		add(lblPrice);
		
		
		EventDateComboBox.setBounds(283, 160, 141, 27);
		add(EventDateComboBox);
		
		
		EventPlaceComboBox.setEditable(false);
		EventPlaceComboBox.setBounds(283, 214, 141, 27);
		add(EventPlaceComboBox);
		
		
		PricetextField.setBounds(283, 272, 141, 27);
		add(PricetextField);
		PricetextField.setColumns(10);
		
		
		EventIDComboBox.setEditable(false);
		EventIDComboBox.setBounds(283, 103, 141, 27);
		add(EventIDComboBox);
		
		lblPaid = new JLabel("Paid:");
		lblPaid.setForeground(Color.WHITE);
		lblPaid.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblPaid.setBounds(159, 339, 88, 27);
		add(lblPaid);
		
		PaidtextField = new JTextField();
		PaidtextField.setEditable(false);
		PaidtextField.setBounds(283, 336, 141, 27);
		add(PaidtextField);
		PaidtextField.setColumns(10);
		
		iconlabel = new JLabel("");
		iconlabel.setIcon(LOGO);
		iconlabel.setBounds(0, 0, 786, 500);
		add(iconlabel);
	}


	/**
	 * @return the btnApply
	 */
	public JButton getBtnApply() {
		return btnApply;
	}

	/**
	 * @param btnApply the btnApply to set
	 */
	public void setBtnApply(JButton btnApply) {
		this.btnApply = btnApply;
	}


	/**
	 * @return the pricetextField
	 */
	public JTextField getPricetextField() {
		return PricetextField;
	}

	/**
	 * @param pricetextField the pricetextField to set
	 */
	public void setPricetextField(JTextField pricetextField) {
		PricetextField = pricetextField;
	}

	/**
	 * @param btnBack the btnBack to set
	 */
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}

	/**
	 * @return the btnBack
	 */
	public JButton getBtnBack() {
		return btnBack;
	}

	/**
	 * @return the eventDateComboBox
	 */
	public JComboBox<String> getEventDateComboBox() {
		return EventDateComboBox;
	}

	/**
	 * @param eventDateComboBox the eventDateComboBox to set
	 */
	public void setEventDateComboBox(JComboBox<String> eventDateComboBox) {
		EventDateComboBox = eventDateComboBox;
	}

	/**
	 * @return the eventPlaceComboBox
	 */
	public JComboBox<String> getEventPlaceComboBox() {
		return EventPlaceComboBox;
	}

	/**
	 * @param eventPlaceComboBox the eventPlaceComboBox to set
	 */
	public void setEventPlaceComboBox(JComboBox<String> eventPlaceComboBox) {
		EventPlaceComboBox = eventPlaceComboBox;
	}

	/**
	 * @return the eventIDComboBox
	 */
	public JComboBox<String> getEventIDComboBox() {
		return EventIDComboBox;
	}

	/**
	 * @param eventIDComboBox the eventIDComboBox to set
	 */
	public void setEventIDComboBox(JComboBox<String> eventIDComboBox) {
		EventIDComboBox = eventIDComboBox;
	}

	/**
	 * @return the paidtextField
	 */
	public JTextField getPaidtextField() {
		return PaidtextField;
	}

	/**
	 * @param paidtextField the paidtextField to set
	 */
	public void setPaidtextField(JTextField paidtextField) {
		PaidtextField = paidtextField;
	}


}
